
<hr>
<!-- ======== START OF CLASS DATA ======== -->

<h2>
Class Project</h2>
<pre><a href="http://java.sun.com/j2se/1.5/docs/api/java/lang/Object.html" title="class or interface in java.lang">java.lang.Object</a>
  <img src="/content/SSD/SSD3/4.2.0.1/normal/pg-class-imp/pg-collctns/assm-qz-pr-arrays/pool-pr-arrays/qn-pr-arrays-empl/handout/resources/inherit.gif" alt="extended by "><b>Project</b>
</pre>
<hr>
<dl>
<dt><pre>public class <b>Project</b><dt>extends <a href="http://java.sun.com/j2se/1.5/docs/api/java/lang/Object.html" title="class or interface in java.lang">Object</a></dt></pre></dt></dl>

<p>
This class models an Project. The following information is maintained:
 </p><ol>
 <li>the ID of the Project, an <code>int</code></li>
 <li>the name of the Project, a <code>String</code></li>
 <li>the price of the Project, a <code>double</code></li>
 </ol>

<p>

</p><p>
</p><dl>
<dt><b>Version:</b></dt>
  <dd>1.0.0</dd>
<dt><b>Author:</b></dt>
  <dd>iCarnegie</dd>
</dl>
<hr>

<p>

<!-- ======== CONSTRUCTOR SUMMARY ======== -->

<a name="constructor_summary"><!-- --></a>
</p><table summary="" border="1" cellpadding="3" cellspacing="0" width="100%">
<tbody><tr class="TableHeadingColor" bgcolor="#ccccff">
<th colspan="2" align="left"><font size="+2">
<b>Constructor Summary</b></font></th>
</tr>
<tr class="TableRowColor" bgcolor="white">
<td><code><b><a href="/content/SSD/SSD3/4.2.0.1/normal/pg-class-imp/pg-collctns/assm-qz-pr-arrays/pool-pr-arrays/qn-pr-arrays-empl/handout/Employee.html#Employee%28int,%20java.lang.String,%20double%29">Project</a></b>(int&nbsp;initialId,
         <a href="http://java.sun.com/j2se/1.5/docs/api/java/lang/String.html" title="class or interface in java.lang" target="external">String</a>&nbsp;initialName,
         double&nbsp;initialPrice)</code>

<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Creates an Project object with the specified ID, name and price.</td>
</tr>
</tbody></table>
&nbsp;
<!-- ========== METHOD SUMMARY =========== -->

<a name="method_summary"><!-- --></a>
<table summary="" border="1" cellpadding="3" cellspacing="0" width="100%">
<tbody><tr class="TableHeadingColor" bgcolor="#ccccff">
<th colspan="2" align="left"><font size="+2">
<b>Method Summary</b></font></th>
</tr>
<tr class="TableRowColor" bgcolor="white">

<td align="right" valign="top" width="1%"><font size="-1">
<code>&nbsp;int</code></font></td>
<td><code><b><a href="/content/SSD/SSD3/4.2.0.1/normal/pg-class-imp/pg-collctns/assm-qz-pr-arrays/pool-pr-arrays/qn-pr-arrays-empl/handout/Project.html#getId%28%29">getId</a></b>()</code>

<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns the ID of this Project.</td>
</tr>
<tr class="TableRowColor" bgcolor="white">
<td align="right" valign="top" width="1%"><font size="-1">
<code>&nbsp;<a href="http://java.sun.com/j2se/1.5/docs/api/java/lang/String.html" title="class or interface in java.lang" target="external">String</a></code></font></td>
<td><code><b><a href="/content/SSD/SSD3/4.2.0.1/normal/pg-class-imp/pg-collctns/assm-qz-pr-arrays/pool-pr-arrays/qn-pr-arrays-empl/handout/Employee.html#getName%28%29">getName</a></b>()</code>

<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns the name of this Project.</td>
</tr>
<tr class="TableRowColor" bgcolor="white">
<td align="right" valign="top" width="1%"><font size="-1">
<code>&nbsp;double</code></font></td>
<td><code><b><a href="/content/SSD/SSD3/4.2.0.1/normal/pg-class-imp/pg-collctns/assm-qz-pr-arrays/pool-pr-arrays/qn-pr-arrays-empl/handout/Employee.html#getSalary%28%29">getPrice</a></b>()</code>

<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns the price of this Project.</td>
</tr>

<tr class="TableRowColor" bgcolor="white">
<td align="right" valign="top" width="1%"><font size="-1">
<code>&nbsp;void</code></font></td>
<td><code><b><a href="/content/SSD/SSD3/4.2.0.1/normal/pg-class-imp/pg-collctns/assm-qz-pr-arrays/pool-pr-arrays/qn-pr-arrays-empl/handout/Project.html#setSalary%28double%29">setPrice</a></b>(double&nbsp;newPrice)</code>

<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Modifies the price of this Project.</td>
</tr>
<tr class="TableRowColor" bgcolor="white">
<td align="right" valign="top" width="1%"><font size="-1">
<code>&nbsp;<a href="http://java.sun.com/j2se/1.5/docs/api/java/lang/String.html" title="class or interface in java.lang" target="external">String</a></code></font></td>

<td><code><b><a href="/content/SSD/SSD3/4.2.0.1/normal/pg-class-imp/pg-collctns/assm-qz-pr-arrays/pool-pr-arrays/qn-pr-arrays-empl/handout/Employee.html#toString%28%29">toString</a></b>()</code>

<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns the string representation of this Project in the following
 format: Project[<i>ID</i>,<i>name</i>,<i>price</i>]</td>
</tr>
</tbody></table>
&nbsp;<a name="methods_inherited_from_class_java.lang.Object"><!-- --></a>
<table summary="" border="1" cellpadding="3" cellspacing="0" width="100%">

<tbody><tr class="TableSubHeadingColor" bgcolor="#eeeeff">
<th align="left"><b>Methods inherited from class java.lang.<a href="http://java.sun.com/j2se/1.5/docs/api/java/lang/Object.html" title="class or interface in java.lang" target="external">Object</a></b></th>
</tr>
<tr class="TableRowColor" bgcolor="white">
<td><code><a href="http://java.sun.com/j2se/1.5/docs/api/java/lang/Object.html#clone%28%29" title="class or interface in java.lang" target="external">clone</a>, <a href="http://java.sun.com/j2se/1.5/docs/api/java/lang/Object.html#equals%28java.lang.Object%29" title="class or interface in java.lang" target="external">equals</a>, <a href="http://java.sun.com/j2se/1.5/docs/api/java/lang/Object.html#finalize%28%29" title="class or interface in java.lang" target="external">finalize</a>, <a href="http://java.sun.com/j2se/1.5/docs/api/java/lang/Object.html#getClass%28%29" title="class or interface in java.lang" target="external">getClass</a>, <a href="http://java.sun.com/j2se/1.5/docs/api/java/lang/Object.html#hashCode%28%29" title="class or interface in java.lang" target="external">hashCode</a>, <a href="http://java.sun.com/j2se/1.5/docs/api/java/lang/Object.html#notify%28%29" title="class or interface in java.lang" target="external">notify</a>, <a href="http://java.sun.com/j2se/1.5/docs/api/java/lang/Object.html#notifyAll%28%29" title="class or interface in java.lang" target="external">notifyAll</a>, <a href="http://java.sun.com/j2se/1.5/docs/api/java/lang/Object.html#wait%28%29" title="class or interface in java.lang" target="external">wait</a>, <a href="http://java.sun.com/j2se/1.5/docs/api/java/lang/Object.html#wait%28long%29" title="class or interface in java.lang" target="external">wait</a>, <a href="http://java.sun.com/j2se/1.5/docs/api/java/lang/Object.html#wait%28long,%20int%29" title="class or interface in java.lang" target="external">wait</a></code></td>

</tr>
</tbody></table>
&nbsp;
<p>

<!-- ========= CONSTRUCTOR DETAIL ======== -->

<a name="constructor_detail"><!-- --></a>
</p><table summary="" border="1" cellpadding="3" cellspacing="0" width="100%">
<tbody><tr class="TableHeadingColor" bgcolor="#ccccff">
<th colspan="1" align="left"><font size="+2">
<b>Constructor Detail</b></font></th>
</tr>
</tbody></table>

<a name="Project(int, java.lang.String, double)"><!-- --></a><h3>

Project</h3>
<pre>public <b>Project</b>(int&nbsp;initialId,
                <a href="http://java.sun.com/j2se/1.5/docs/api/java/lang/String.html" title="class or interface in java.lang">String</a>&nbsp;initialName,
                double&nbsp;initialPrice)</pre>
<dl>
<dd>Creates an Project object with the specified ID, name and price.
<p>
</p><dl>
<dt><b>Parameters:</b></dt><dd><code>initialId</code> - the ID of the Project.</dd><dd><code>initialName</code> - the name of the Project.</dd><dd><code>initialPrice</code> - the price of the Project.</dd></dl>

</dd></dl>

<!-- ============ METHOD DETAIL ========== -->

<a name="method_detail"><!-- --></a>
<table summary="" border="1" cellpadding="3" cellspacing="0" width="100%">
<tbody><tr class="TableHeadingColor" bgcolor="#ccccff">
<th colspan="1" align="left"><font size="+2">
<b>Method Detail</b></font></th>
</tr>
</tbody></table>

<a name="getId()"><!-- --></a><h3>
getId</h3>
<pre>public int <b>getId</b>()</pre>

<dl>
<dd>Returns the ID of this Project.
<p>
</p></dd><dd><dl>

<dt><b>Returns:</b></dt><dd>the ID of this Project.</dd></dl>
</dd>
</dl>
<hr>

<a name="getName()"><!-- --></a><h3>
getName</h3>
<pre>public <a href="http://java.sun.com/j2se/1.5/docs/api/java/lang/String.html" title="class or interface in java.lang">String</a> <b>getName</b>()</pre>

<dl>
<dd>Returns the name of this Project.
<p>
</p></dd><dd><dl>

<dt><b>Returns:</b></dt><dd>the name of this Project.</dd></dl>
</dd>
</dl>
<hr>

<a name="getPrice()"><!-- --></a><h3>
getPrice</h3>
<pre>public double <b>getPrice</b>()</pre>

<dl>
<dd>Returns the price of this Project.
<p>
</p></dd><dd><dl>

<dt><b>Returns:</b></dt><dd>the price of this Project.</dd></dl>
</dd>
</dl>
<hr>

<a name="setPrice(double)"><!-- --></a><h3>
setPrice</h3>
<pre>public void <b>setPrice</b>(double&nbsp;newPrice)</pre>

<dl>
<dd>Modifies the price of this Project.
<p>
</p></dd><dd><dl>
<dt><b>Parameters:</b></dt><dd><code>newPrice</code> - the new price of this Project.</dd></dl>
</dd>
</dl>
<hr>

<a name="toString()"><!-- --></a><h3>
toString</h3>
<pre>public <a href="http://java.sun.com/j2se/1.5/docs/api/java/lang/String.html" title="class or interface in java.lang">String</a> <b>toString</b>()</pre>

<dl>
<dd>Returns the string representation of this Project in the following
 format: Project[<i>ID</i>,<i>name</i>,<i>price</i>]
<p>
</p></dd><dd><dl>
<dt><b>Overrides:</b></dt><dd><code><a href="http://java.sun.com/j2se/1.5/docs/api/java/lang/Object.html#toString%28%29" title="class or interface in java.lang" target="external">toString</a></code> in class <code><a href="http://java.sun.com/j2se/1.5/docs/api/java/lang/Object.html" title="class or interface in java.lang" target="external">Object</a></code></dd></dl>
</dd>

<dd><dl>

<dt><b>Returns:</b></dt><dd>a string representation of this Project.</dd></dl>
</dd>
</dl>
<!-- ========= END OF CLASS DATA ========= -->
<hr>

<hr>

